home *** CD-ROM | disk | FTP | other *** search
- Path: dialup-14-c-50.gw.umn.edu!user
- From: zeng0007@gold.tc.umn.edu (Yuemo Zeng)
- Newsgroups: comp.lang.c++
- Subject: Binary Search Tree Class Problem
- Date: 10 Feb 1996 18:20:04 GMT
- Organization: University of Minnesota
- Message-ID: <zeng0007-1002961218270001@dialup-14-c-50.gw.umn.edu>
- NNTP-Posting-Host: dialup-14-c-50.gw.umn.edu
-
- I try to programm binary search tree. The procedure is common: define a
- node class, and then a binary tree class which is a friend of node class.
- I know the problem is in somewhere of the constructor, beside the default
- constructor, a insert function is used to add node to the tree.
-
- Everytime I call a tree member function, I will got the following error message.
-
- usetree.C: In function `int main()':
- usetree.C:67: request for member `insert' in `tree()', which is of
- non-aggregate typ
- e `BST ()()'
-
- Can anyone interpreter this message and help me out?
-
- Thanks!
-
- --
- Yuemo Zeng
- zeng0007@gold.tc.umn.edu
- http://dragon.labmed.umn.edu/~zeng/
-